Search Results for

    Show / Hide Table of Contents

    Class <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger

    Inheritance
    System.Object
    <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger
    Namespace: Org.BouncyCastle.Math
    Assembly: IronPdf.dll
    Syntax
    public class <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger : Object

    Constructors

    <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger(Byte[])

    Declaration
    public <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger(byte[] bytes)
    Parameters
    Type Name Description
    System.Byte[] bytes

    <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger(Byte[], Int32, Int32)

    Declaration
    public <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger(byte[] bytes, int offset, int length)
    Parameters
    Type Name Description
    System.Byte[] bytes
    System.Int32 offset
    System.Int32 length

    <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger(Int32, Byte[])

    Declaration
    public <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger(int sign, byte[] bytes)
    Parameters
    Type Name Description
    System.Int32 sign
    System.Byte[] bytes

    <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger(Int32, Byte[], Int32, Int32)

    Declaration
    public <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger(int sign, byte[] bytes, int offset, int length)
    Parameters
    Type Name Description
    System.Int32 sign
    System.Byte[] bytes
    System.Int32 offset
    System.Int32 length

    <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger(Int32, Int32, Random)

    Declaration
    public <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger(int bitLength, int certainty, Random random)
    Parameters
    Type Name Description
    System.Int32 bitLength
    System.Int32 certainty
    System.Random random

    <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger(Int32, Random)

    Declaration
    public <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger(int sizeInBits, Random random)
    Parameters
    Type Name Description
    System.Int32 sizeInBits
    System.Random random

    <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger(String)

    Declaration
    public <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger(string value)
    Parameters
    Type Name Description
    System.String value

    <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger(String, Int32)

    Declaration
    public <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger(string str, int radix)
    Parameters
    Type Name Description
    System.String str
    System.Int32 radix

    Fields

    Four

    Declaration
    public static readonly  < 11d  4  c772 - 3579 - 4f  93 - ac46 - b452e4461737 > BigInteger Four
    Field Value
    Type Description
    <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger

    One

    Declaration
    public static readonly  < 11d  4  c772 - 3579 - 4f  93 - ac46 - b452e4461737 > BigInteger One
    Field Value
    Type Description
    <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger

    Ten

    Declaration
    public static readonly  < 11d  4  c772 - 3579 - 4f  93 - ac46 - b452e4461737 > BigInteger Ten
    Field Value
    Type Description
    <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger

    Three

    Declaration
    public static readonly  < 11d  4  c772 - 3579 - 4f  93 - ac46 - b452e4461737 > BigInteger Three
    Field Value
    Type Description
    <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger

    Two

    Declaration
    public static readonly  < 11d  4  c772 - 3579 - 4f  93 - ac46 - b452e4461737 > BigInteger Two
    Field Value
    Type Description
    <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger

    Zero

    Declaration
    public static readonly  < 11d  4  c772 - 3579 - 4f  93 - ac46 - b452e4461737 > BigInteger Zero
    Field Value
    Type Description
    <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger

    Properties

    BitCount

    Declaration
    public int BitCount { get; }
    Property Value
    Type Description
    System.Int32

    BitLength

    Declaration
    public int BitLength { get; }
    Property Value
    Type Description
    System.Int32

    IntValue

    Declaration
    public int IntValue { get; }
    Property Value
    Type Description
    System.Int32

    IntValueExact

    Declaration
    public int IntValueExact { get; }
    Property Value
    Type Description
    System.Int32

    LongValue

    Declaration
    public long LongValue { get; }
    Property Value
    Type Description
    System.Int64

    LongValueExact

    Declaration
    public long LongValueExact { get; }
    Property Value
    Type Description
    System.Int64

    SignValue

    Declaration
    public int SignValue { get; }
    Property Value
    Type Description
    System.Int32

    Methods

    Abs()

    Declaration
    public  < 11d  4  c772 - 3579 - 4f  93 - ac46 - b452e4461737 > BigInteger Abs()
    Returns
    Type Description
    <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger

    Add(<11d4c772-3579-4f93-ac46-b452e4461737>BigInteger)

    Declaration
    public  < 11d  4  c772 - 3579 - 4f  93 - ac46 - b452e4461737 > BigInteger Add( < 11d  4  c772 - 3579 - 4f  93 - ac46 - b452e4461737 > BigInteger value)
    Parameters
    Type Name Description
    <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger value
    Returns
    Type Description
    <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger

    And(<11d4c772-3579-4f93-ac46-b452e4461737>BigInteger)

    Declaration
    public  < 11d  4  c772 - 3579 - 4f  93 - ac46 - b452e4461737 > BigInteger And( < 11d  4  c772 - 3579 - 4f  93 - ac46 - b452e4461737 > BigInteger value)
    Parameters
    Type Name Description
    <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger value
    Returns
    Type Description
    <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger

    AndNot(<11d4c772-3579-4f93-ac46-b452e4461737>BigInteger)

    Declaration
    public  < 11d  4  c772 - 3579 - 4f  93 - ac46 - b452e4461737 > BigInteger AndNot( < 11d  4  c772 - 3579 - 4f  93 - ac46 - b452e4461737 > BigInteger val)
    Parameters
    Type Name Description
    <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger val
    Returns
    Type Description
    <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger

    Arbitrary(Int32)

    Declaration
    public static  < 11d  4  c772 - 3579 - 4f  93 - ac46 - b452e4461737 > BigInteger Arbitrary(int sizeInBits)
    Parameters
    Type Name Description
    System.Int32 sizeInBits
    Returns
    Type Description
    <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger

    BitCnt(Int32)

    Declaration
    public static int BitCnt(int i)
    Parameters
    Type Name Description
    System.Int32 i
    Returns
    Type Description
    System.Int32

    ClearBit(Int32)

    Declaration
    public  < 11d  4  c772 - 3579 - 4f  93 - ac46 - b452e4461737 > BigInteger ClearBit(int n)
    Parameters
    Type Name Description
    System.Int32 n
    Returns
    Type Description
    <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger

    CompareTo(<11d4c772-3579-4f93-ac46-b452e4461737>BigInteger)

    Declaration
    public int CompareTo( < 11d  4  c772 - 3579 - 4f  93 - ac46 - b452e4461737 > BigInteger value)
    Parameters
    Type Name Description
    <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger value
    Returns
    Type Description
    System.Int32

    CompareTo(Object)

    Declaration
    public int CompareTo(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.Int32

    Divide(<11d4c772-3579-4f93-ac46-b452e4461737>BigInteger)

    Declaration
    public  < 11d  4  c772 - 3579 - 4f  93 - ac46 - b452e4461737 > BigInteger Divide( < 11d  4  c772 - 3579 - 4f  93 - ac46 - b452e4461737 > BigInteger val)
    Parameters
    Type Name Description
    <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger val
    Returns
    Type Description
    <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger

    DivideAndRemainder(<11d4c772-3579-4f93-ac46-b452e4461737>BigInteger)

    Declaration
    public  < 11d  4  c772 - 3579 - 4f  93 - ac46 - b452e4461737 > BigInteger [ ] DivideAndRemainder( < 11d  4  c772 - 3579 - 4f  93 - ac46 - b452e4461737 > BigInteger val)
    Parameters
    Type Name Description
    <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger val
    Returns
    Type Description
    <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger[]

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.Boolean

    FlipBit(Int32)

    Declaration
    public  < 11d  4  c772 - 3579 - 4f  93 - ac46 - b452e4461737 > BigInteger FlipBit(int n)
    Parameters
    Type Name Description
    System.Int32 n
    Returns
    Type Description
    <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger

    Gcd(<11d4c772-3579-4f93-ac46-b452e4461737>BigInteger)

    Declaration
    public  < 11d  4  c772 - 3579 - 4f  93 - ac46 - b452e4461737 > BigInteger Gcd( < 11d  4  c772 - 3579 - 4f  93 - ac46 - b452e4461737 > BigInteger value)
    Parameters
    Type Name Description
    <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger value
    Returns
    Type Description
    <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32

    GetLowestSetBit()

    Declaration
    public int GetLowestSetBit()
    Returns
    Type Description
    System.Int32

    IsProbablePrime(Int32)

    Declaration
    public bool IsProbablePrime(int certainty)
    Parameters
    Type Name Description
    System.Int32 certainty
    Returns
    Type Description
    System.Boolean

    Max(<11d4c772-3579-4f93-ac46-b452e4461737>BigInteger)

    Declaration
    public  < 11d  4  c772 - 3579 - 4f  93 - ac46 - b452e4461737 > BigInteger Max( < 11d  4  c772 - 3579 - 4f  93 - ac46 - b452e4461737 > BigInteger value)
    Parameters
    Type Name Description
    <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger value
    Returns
    Type Description
    <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger

    Min(<11d4c772-3579-4f93-ac46-b452e4461737>BigInteger)

    Declaration
    public  < 11d  4  c772 - 3579 - 4f  93 - ac46 - b452e4461737 > BigInteger Min( < 11d  4  c772 - 3579 - 4f  93 - ac46 - b452e4461737 > BigInteger value)
    Parameters
    Type Name Description
    <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger value
    Returns
    Type Description
    <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger

    Mod(<11d4c772-3579-4f93-ac46-b452e4461737>BigInteger)

    Declaration
    public  < 11d  4  c772 - 3579 - 4f  93 - ac46 - b452e4461737 > BigInteger Mod( < 11d  4  c772 - 3579 - 4f  93 - ac46 - b452e4461737 > BigInteger m)
    Parameters
    Type Name Description
    <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger m
    Returns
    Type Description
    <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger

    ModInverse(<11d4c772-3579-4f93-ac46-b452e4461737>BigInteger)

    Declaration
    public  < 11d  4  c772 - 3579 - 4f  93 - ac46 - b452e4461737 > BigInteger ModInverse( < 11d  4  c772 - 3579 - 4f  93 - ac46 - b452e4461737 > BigInteger m)
    Parameters
    Type Name Description
    <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger m
    Returns
    Type Description
    <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger

    ModPow(<11d4c772-3579-4f93-ac46-b452e4461737>BigInteger, <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger)

    Declaration
    public  < 11d  4  c772 - 3579 - 4f  93 - ac46 - b452e4461737 > BigInteger ModPow( < 11d  4  c772 - 3579 - 4f  93 - ac46 - b452e4461737 > BigInteger e,  < 11d  4  c772 - 3579 - 4f  93 - ac46 - b452e4461737 > BigInteger m)
    Parameters
    Type Name Description
    <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger e
    <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger m
    Returns
    Type Description
    <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger

    Multiply(<11d4c772-3579-4f93-ac46-b452e4461737>BigInteger)

    Declaration
    public  < 11d  4  c772 - 3579 - 4f  93 - ac46 - b452e4461737 > BigInteger Multiply( < 11d  4  c772 - 3579 - 4f  93 - ac46 - b452e4461737 > BigInteger val)
    Parameters
    Type Name Description
    <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger val
    Returns
    Type Description
    <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger

    Negate()

    Declaration
    public  < 11d  4  c772 - 3579 - 4f  93 - ac46 - b452e4461737 > BigInteger Negate()
    Returns
    Type Description
    <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger

    NextProbablePrime()

    Declaration
    public  < 11d  4  c772 - 3579 - 4f  93 - ac46 - b452e4461737 > BigInteger NextProbablePrime()
    Returns
    Type Description
    <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger

    Not()

    Declaration
    public  < 11d  4  c772 - 3579 - 4f  93 - ac46 - b452e4461737 > BigInteger Not()
    Returns
    Type Description
    <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger

    Or(<11d4c772-3579-4f93-ac46-b452e4461737>BigInteger)

    Declaration
    public  < 11d  4  c772 - 3579 - 4f  93 - ac46 - b452e4461737 > BigInteger Or( < 11d  4  c772 - 3579 - 4f  93 - ac46 - b452e4461737 > BigInteger value)
    Parameters
    Type Name Description
    <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger value
    Returns
    Type Description
    <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger

    Pow(Int32)

    Declaration
    public  < 11d  4  c772 - 3579 - 4f  93 - ac46 - b452e4461737 > BigInteger Pow(int exp)
    Parameters
    Type Name Description
    System.Int32 exp
    Returns
    Type Description
    <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger

    ProbablePrime(Int32, Random)

    Declaration
    public static  < 11d  4  c772 - 3579 - 4f  93 - ac46 - b452e4461737 > BigInteger ProbablePrime(int bitLength, Random random)
    Parameters
    Type Name Description
    System.Int32 bitLength
    System.Random random
    Returns
    Type Description
    <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger

    RabinMillerTest(Int32, Random)

    Declaration
    public bool RabinMillerTest(int certainty, Random random)
    Parameters
    Type Name Description
    System.Int32 certainty
    System.Random random
    Returns
    Type Description
    System.Boolean

    Remainder(<11d4c772-3579-4f93-ac46-b452e4461737>BigInteger)

    Declaration
    public  < 11d  4  c772 - 3579 - 4f  93 - ac46 - b452e4461737 > BigInteger Remainder( < 11d  4  c772 - 3579 - 4f  93 - ac46 - b452e4461737 > BigInteger n)
    Parameters
    Type Name Description
    <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger n
    Returns
    Type Description
    <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger

    SetBit(Int32)

    Declaration
    public  < 11d  4  c772 - 3579 - 4f  93 - ac46 - b452e4461737 > BigInteger SetBit(int n)
    Parameters
    Type Name Description
    System.Int32 n
    Returns
    Type Description
    <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger

    ShiftLeft(Int32)

    Declaration
    public  < 11d  4  c772 - 3579 - 4f  93 - ac46 - b452e4461737 > BigInteger ShiftLeft(int n)
    Parameters
    Type Name Description
    System.Int32 n
    Returns
    Type Description
    <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger

    ShiftRight(Int32)

    Declaration
    public  < 11d  4  c772 - 3579 - 4f  93 - ac46 - b452e4461737 > BigInteger ShiftRight(int n)
    Parameters
    Type Name Description
    System.Int32 n
    Returns
    Type Description
    <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger

    Square()

    Declaration
    public  < 11d  4  c772 - 3579 - 4f  93 - ac46 - b452e4461737 > BigInteger Square()
    Returns
    Type Description
    <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger

    Subtract(<11d4c772-3579-4f93-ac46-b452e4461737>BigInteger)

    Declaration
    public  < 11d  4  c772 - 3579 - 4f  93 - ac46 - b452e4461737 > BigInteger Subtract( < 11d  4  c772 - 3579 - 4f  93 - ac46 - b452e4461737 > BigInteger n)
    Parameters
    Type Name Description
    <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger n
    Returns
    Type Description
    <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger

    TestBit(Int32)

    Declaration
    public bool TestBit(int n)
    Parameters
    Type Name Description
    System.Int32 n
    Returns
    Type Description
    System.Boolean

    ToByteArray()

    Declaration
    public byte[] ToByteArray()
    Returns
    Type Description
    System.Byte[]

    ToByteArrayUnsigned()

    Declaration
    public byte[] ToByteArrayUnsigned()
    Returns
    Type Description
    System.Byte[]

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String

    ToString(Int32)

    Declaration
    public string ToString(int radix)
    Parameters
    Type Name Description
    System.Int32 radix
    Returns
    Type Description
    System.String

    ValueOf(Int64)

    Declaration
    public static  < 11d  4  c772 - 3579 - 4f  93 - ac46 - b452e4461737 > BigInteger ValueOf(long value)
    Parameters
    Type Name Description
    System.Int64 value
    Returns
    Type Description
    <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger

    Xor(<11d4c772-3579-4f93-ac46-b452e4461737>BigInteger)

    Declaration
    public  < 11d  4  c772 - 3579 - 4f  93 - ac46 - b452e4461737 > BigInteger Xor( < 11d  4  c772 - 3579 - 4f  93 - ac46 - b452e4461737 > BigInteger value)
    Parameters
    Type Name Description
    <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger value
    Returns
    Type Description
    <11d4c772-3579-4f93-ac46-b452e4461737>BigInteger
    ☀
    ☾
    Downloads
    • Download with Nuget
    • Start for Free
    In This Article
    Back to top
    Install with Nuget
    Want to deploy IronPDF to a live project for FREE?
    What’s included?
    30 days of fully-functional product
    Test and share in a live environment
    No watermarks in production
    Get your free 30-day Trial Key instantly.
    No credit card or account creation required
    Your Trial License Key has been emailed to you.
    Download IronPDF free to apply
    your Trial Licenses Key
    Install with NuGet View Licenses
    Licenses from $499. Have a question? Get in touch.